package com.itliguo.dao;


import com.itliguo.domain.Goods;
import org.springframework.stereotype.Repository;

@Repository  //将该类注入到ioc容器
public class GoodsDao {
    //单一查
    public Goods findOne(int id){
        return new Goods(1,"苹果手机",3999,10000);
    }
}
